﻿<!DOCTYPE html>
<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=utf-8" />
<META name="keywords" content="$!config.keywords" />
<META name="description" content="$!config.description" />
<title>论坛管理 - 用户列表</title>
<link rel="stylesheet" href="skin/gold/css/reset.css" type="text/css" media="screen" />
<link rel="stylesheet" href="skin/gold/css/style.css" type="text/css" media="screen" />
<script type="text/javascript" src="res/js/jquery-1.7.1.min.js"></script>
<script type="text/javascript" src="res/js/common.js"></script>
<script type="text/javascript" src="skin/gold/js/html5.js"></script>
<script type="text/javascript" src="skin/gold/js/ikeke.js"></script>
<!--[if lte IE 6]>
<script type="text/javascript" src="skin/gold/js/DD_belatedPNG.js"></script>
<script type="text/javascript">
DD_belatedPNG.fix('a,a:hover,div,span,img,li');
</script>
<![endif]-->
<script>
function doEdit()
{
var id=ListForm.cid.value;
if(id=="")
{
alert("请选择要编辑的数据！");
return false;
}
ListForm.parameter.value="edit";
ListForm.submit();
}
function doShow()
{
var id=ListForm.cid.value;
if(id=="")
{
alert("请选择要编辑的数据！");
return false;
}
window.open("/showUser.do?cid="+id,"","")
}
function doDel()
{
if(ListForm.cid.value!="")
{
if(confirm("删除后数据不能恢复，确认要删除吗？")){
ListForm.parameter.value="del";
ListForm.submit();
}
}
}
function doAdd()
{
ListForm.parameter.value="new";
ListForm.cid.value="";
ListForm.submit();
}
function selectRow(id)
{
ListForm.cid.value=id;
}
function gotoPage(n)
{
	ListForm.page.value=n;
	ListForm.submit();
}
</script>
</head>
<body>
<div id="container">
	<div id="asideback"></div>
	<div id="asideswitch"><div class="button"></div></div>
	#parse('/inc/left.htm')
	
	<div id="rightbody"><!-- 主体部分 -->
		<section id="wrapper">
			#parse('/inc/head.htm')
<table class="update-top">
<form id="ListForm" name="ListForm" method="post" action="/bbs/bbsuser.do">
	   <input type="hidden" name="parameter" value="list">
	   <input type="hidden" name="subCommand" value="">
	   <input type="hidden" name="page"   value="$!page">
	   <input type="hidden" name="cid"   value="$!cid">
  <tr>
      <td width="80%" height="23">用户管理</td>
      <td><input type="button" name="Submit" value="添加新用户" onClick="doAdd()"></td>
      <td>&nbsp;</td>
  </tr>
  </form>
</table>
<table class="write1">
  <tr bgcolor="84B6E7" class="news_text"> 
    <td width="10%" height="27" bgcolor="84B6E7"><div align="center" class="cn_12px"><strong>用户名</strong></div></td>
    <td width="6%"><div align="center" class="cn_12px"><strong>性别</strong></div></td>
    <td width="12%"><div align="center" class="cn_12px"><strong>邮箱</strong></div></td>
    <td width="45%" bgcolor="84B6E7"><div align="center" class="cn_12px"><strong>简介</strong></div></td>
    <td><div align="center" class="cn_12px"><strong>注册时间</strong></div></td>
	<td><div align="center" class="cn_12px"><strong>操作</strong></div></td>
  </tr>
   #foreach( $info in $list) 
  <tr id="$!info.cid" onMouseOver="this.className='MouseOver';" onMouseOut="this.className='MouseOut'" onDblClick="selectRow(this.id);doEdit();" onClick="selectRow(this.id);"> 
    <td width="5%" height="27">
       <div align="center">$!info.username</div></td>
    <td width="6%" ><div align="center">$!info.sex</div></td>
    <td width="7%" >$!info.email</td>
    <td width="45%" > 
      　$!info.intro</td>
    <td >$!info.inputtime </td>
  <td align="center" bgcolor="F6FCFD"><a href="#" onClick="selectRow('$!info.cid');doEdit();">编辑</a>　<a href="#" onClick="selectRow('$!info.cid');doDel();">删除</a></td>
  </tr>
  #end
</table>

<table width="98%" border="1" align="center" cellpadding="0" cellspacing="0" class="cn_12px">
  <tr>
    <td height="25" align="center" bordercolor="#00CCFF">第<strong>$!page</strong>页 共<strong>$!totalPage</strong>页<span class="txt1">[共<b>$!rows</b>条记录]</span> 　　分页：$!gotoPageHTML　</td>
  </tr>
</table>
		</section>
	</div>
	
	#parse('/inc/foot.htm')
</div>
</body>
</html>
#if($msg)
<script>
alert('$!msg');
</script>
#end

